package com.ruoyi.compensationManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.compensationManagement.mapper.CompensationStaffPayrollLogMapper;
import com.ruoyi.compensationManagement.domain.CompensationStaffPayrollLog;
import com.ruoyi.compensationManagement.service.ICompensationStaffPayrollLogService;

/**
 * 工资修改日志Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-12
 */
@Service
public class CompensationStaffPayrollLogServiceImpl implements ICompensationStaffPayrollLogService
{
    @Autowired
    private CompensationStaffPayrollLogMapper compensationStaffPayrollLogMapper;

    /**
     * 查询工资修改日志
     *
     * @param logId 工资修改日志主键
     * @return 工资修改日志
     */
    @Override
    public CompensationStaffPayrollLog selectCompensationStaffPayrollLogByLogId(Long logId)
    {
        return compensationStaffPayrollLogMapper.selectCompensationStaffPayrollLogByLogId(logId);
    }

    /**
     * 查询工资修改日志列表
     *
     * @param compensationStaffPayrollLog 工资修改日志
     * @return 工资修改日志
     */
    @Override
    public List<CompensationStaffPayrollLog> selectCompensationStaffPayrollLogList(CompensationStaffPayrollLog compensationStaffPayrollLog)
    {
        return compensationStaffPayrollLogMapper.selectCompensationStaffPayrollLogList(compensationStaffPayrollLog);
    }

    /**
     * 新增工资修改日志
     *
     * @param compensationStaffPayrollLog 工资修改日志
     * @return 结果
     */
    @Override
    public int insertCompensationStaffPayrollLog(CompensationStaffPayrollLog compensationStaffPayrollLog)
    {
        return compensationStaffPayrollLogMapper.insertCompensationStaffPayrollLog(compensationStaffPayrollLog);
    }

    /**
     * 修改工资修改日志
     *
     * @param compensationStaffPayrollLog 工资修改日志
     * @return 结果
     */
    @Override
    public int updateCompensationStaffPayrollLog(CompensationStaffPayrollLog compensationStaffPayrollLog)
    {
        return compensationStaffPayrollLogMapper.updateCompensationStaffPayrollLog(compensationStaffPayrollLog);
    }

    /**
     * 批量删除工资修改日志
     *
     * @param logIds 需要删除的工资修改日志主键
     * @return 结果
     */
    @Override
    public int deleteCompensationStaffPayrollLogByLogIds(Long[] logIds)
    {
        return compensationStaffPayrollLogMapper.deleteCompensationStaffPayrollLogByLogIds(logIds);
    }

    /**
     * 删除工资修改日志信息
     *
     * @param logId 工资修改日志主键
     * @return 结果
     */
    @Override
    public int deleteCompensationStaffPayrollLogByLogId(Long logId)
    {
        return compensationStaffPayrollLogMapper.deleteCompensationStaffPayrollLogByLogId(logId);
    }
}
